package com.easyweb.common;

import java.io.IOException;

import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSONObject;

public class PrintUtils {
	
	public static void printMsg(HttpServletResponse response,Object object){
		response.setContentType(Constants.CONTENTTYPE_JSON);
		try {
			response.getWriter().write(JSONObject.toJSONString(object));
			response.getWriter().close();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}
